﻿using Abp.Events.Bus;
using NetCore.Enums;
using System.ComponentModel;

namespace NetCore.Events
{
    /// <summary>
    /// 读消息事件 更新用户未读消息数 使用事件还不如直接更新
    /// </summary>
    public class ReadNotifyEvent : EventData
    {
        public ReadNotifyEvent(long toUserId, int count, NotifyType notifyType = NotifyType.系统消息)
        {
            ToUserId = toUserId;
            NotifyCount = count;
            NotifyType = notifyType;
        }

        /// <summary>
        /// 读取消息数目 负数时表示标记为未读
        /// </summary>
        [Description("消息数目")]
        public int NotifyCount { get; set; }

        public NotifyType NotifyType { get; set; }

        /// <summary>
        /// 接收者
        /// </summary>
        [Description("接收者")]
        public long ToUserId { get; set; }
    }
}
